/*
 * @Description: 全宗操作组件
 * @Author: Rfan
 * @Date: 2022-01-07 15:35:59
 * @LastEditTime: 2022-01-09 17:28:35
 */
import * as React from 'react';
import { Button, Space } from 'antd';
import { useFileContext } from '../contexts/FilesContext';

const Operate = () => {
  const { showDialog } = useFileContext;
  const showModal = () => {
    console.log('showModal');
    showDialog();
  };

  return (
    <div className="filter-container">
      <Space size="middle">
        <Button type="primary" onClick={showModal}>
          新增
        </Button>
      </Space>
    </div>
  );
};

export default Operate;
